home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Aventura / Squeaky.swf / scripts / frame_480 / PlaceObject2_485_22 / CLIPACTIONRECORD onClipEvent(enterFrame).as < prev    next >
Encoding:
Text File  |  2005-08-04  |  523 b   |  22 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.timer.timer > 0)
  3.    {
  4.       _root.timer.timer -= 1;
  5.       _root.total_score += 15;
  6.       _root.score = _root.total_score;
  7.       bonus.start();
  8.    }
  9.    if(_root.totalhealth > 0 && _root.timer.timer == 0)
  10.    {
  11.       _root.totalhealth -= 10;
  12.       _root.total_score += 50;
  13.       _root.score = _root.total_score;
  14.       bonus.start();
  15.       if(_root.totalhealth > 250)
  16.       {
  17.          _root.health.nextFrame();
  18.          _root.health.cell.gotoAndStop(2);
  19.       }
  20.    }
  21. }
  22.